package com.gszyxy.mallfour.consumer;

    class Consumer {
    // 消费者id
    private String consumerId;

    // 消费者姓名
    private String name;

    // 消费者电子邮件
    private String email;

    // 消费者电话
    private String phone;

    // Constructor
    public Consumer(String consumerId, String name, String email, String phone) {
        this.consumerId = consumerId;
        this.name = name;
        this.email = email;
        this.phone = phone;
    }

    // Getter and Setter methods for consumerId
    public String getConsumerId() {
        return consumerId;
    }

    public void setConsumerId(String consumerId) {
        this.consumerId = consumerId;
    }

    // Getter and Setter methods for name
    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    // Getter and Setter methods for email
    public String getEmail() {
        return email;
    }

    public void setEmail(String email) {
        this.email = email;
    }

    // Getter and Setter methods for phone
    public String getPhone() {
        return phone;
    }

    public void setPhone(String phone) {
        this.phone = phone;
    }

    @Override
    public String toString() {
        return "Consumer{" +
                "consumerId='" + consumerId + '\'' +
                ", name='" + name + '\'' +
                ", email='" + email + '\'' +
                ", phone='" + phone + '\'' +
                '}';
    }
}